package com.biz.primus.account.security;

import com.biz.primus.account.config.CasConfig;
import org.springframework.security.cas.ServiceProperties;
import org.springframework.security.cas.web.CasAuthenticationEntryPoint;

/**
 * Created by younger on 17/11/2.
 * 统一登录平台入口类
 */
public class PrimusCasAuthenticationEntryPoint extends CasAuthenticationEntryPoint {

    /**
     * 构造方法
     */
    public PrimusCasAuthenticationEntryPoint(){

    }

    /**
     * 构造方法
     * @param loginUrl 登录url地址;
     * @param serviceProperties 配置信息
     */
    public PrimusCasAuthenticationEntryPoint(String loginUrl, ServiceProperties serviceProperties){
        this.setLoginUrl(loginUrl);
        this.setServiceProperties(serviceProperties);
    }

}
